/* 
 * File:   Buffer.h
 * Author: max
 *
 * Created on May 23, 2013, 9:49 PM
 */

#ifndef BUFFER_H
#define	BUFFER_H

#include <stdint.h>
#include "common_Excepcion.h"

namespace TP {

class Buffer {

public:
    
    Buffer(const size_t &pSize);
    
    virtual ~Buffer();
    
    size_t Write (const uint8_t* pData, const size_t &pBytesQuantity) throw (Excepcion&) ;
    
    uint8_t* c_buffer ();
    
    void Zero();
    
    size_t Size();
    
private:
    
    uint8_t* _c_buffer;
    size_t _size;

};

}
#endif	/* BUFFER_H */

